package com.csnf.entity;

import java.time.LocalDateTime;
import java.util.Locale;

public class Task {
    private int taskId;
    private String taskName;
    private String taskGroup;
    private String taskContent;
    private String taskExpression;
    private int taskState;
    private LocalDateTime taskDate;
    private int taskStrategy;
    private int taskCurrent;
    private String taskDesc;
    public Task() {}

    public int getTaskId() {
        return taskId;
    }

    public void setTaskId(int taskId) {
        this.taskId = taskId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskGroup() {
        return taskGroup;
    }

    public void setTaskGroup(String taskGroup) {
        this.taskGroup = taskGroup;
    }

    public String getTaskContent() {
        return taskContent;
    }

    public void setTaskContent(String taskContent) {
        this.taskContent = taskContent;
    }

    public String getTaskExpression() {
        return taskExpression;
    }

    public void setTaskExpression(String taskExpression) {
        this.taskExpression = taskExpression;
    }

    public int getTaskState() {
        return taskState;
    }

    public void setTaskState(int taskState) {
        this.taskState = taskState;
    }

    public LocalDateTime getTaskDate() {
        return taskDate;
    }

    public void setTaskDate(LocalDateTime taskDate) {
        this.taskDate = taskDate;
    }

    public int getTaskStrategy() {
        return taskStrategy;
    }

    public void setTaskStrategy(int taskStrategy) {
        this.taskStrategy = taskStrategy;
    }

    public int getTaskCurrent() {
        return taskCurrent;
    }

    public void setTaskCurrent(int taskCurrent) {
        this.taskCurrent = taskCurrent;
    }

    public String getTaskDesc() {
        return taskDesc;
    }

    public void setTaskDesc(String taskDesc) {
        this.taskDesc = taskDesc;
    }

    public Task(Integer taskId, String taskName, String taskGroup, String taskContent, String taskExpression, int taskState, LocalDateTime taskDate, int taskStrategy, int taskCurrent, String taskDesc) {
        this.taskId = taskId;
        this.taskName = taskName;
        this.taskGroup = taskGroup;
        this.taskContent = taskContent;
        this.taskExpression = taskExpression;
        this.taskState = taskState;
        this.taskDate = taskDate;
        this.taskStrategy = taskStrategy;
        this.taskCurrent = taskCurrent;
        this.taskDesc = taskDesc;
    }

    @Override
    public String toString() {
        return "Task{" +
                "taskId=" + taskId +
                ", taskName='" + taskName + '\'' +
                ", taskGroup='" + taskGroup + '\'' +
                ", taskContent='" + taskContent + '\'' +
                ", taskExpression='" + taskExpression + '\'' +
                ", taskState=" + taskState +
                ", taskDate=" + taskDate +
                ", taskStrategy=" + taskStrategy +
                ", taskCurrent=" + taskCurrent +
                ", taskDesc='" + taskDesc + '\'' +
                '}';
    }
}
